package routers

import (
	"device-admin/internal/app/web/controller"
	"device-admin/internal/app/web/service/common"
	"io/fs"
	"net/http"

	"github.com/gin-gonic/gin"
)

// BEFile 文件请求
func BEFile(rg *gin.RouterGroup) {
	rg.GET("/screencap/:robot_id/:screencap_dir/:screencap_name", controller.Screencap{}.Pic) // 终端截屏
	serviceFs, _ := fs.Sub(common.Assets, "assets")
	rg.StaticFS("/assets", http.FS(serviceFs)) // 商场服务默认标示图
}
